package edu.gatech.angry12.UI.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;

public class Registration extends Composite {

	public Registration() {
		
		FlexTable flexTable = new FlexTable();
		flexTable.setStyleName("gwt-SeedApp-Registration-background");
		initWidget(flexTable);
		
		Label lblRegistration = new Label("Registration");
		flexTable.setWidget(0, 0, lblRegistration);
		
		Label lblName = new Label("Name:");
		lblName.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(1, 0, lblName);
		
		TextBox nameTextBox = new TextBox();
		flexTable.setWidget(1, 1, nameTextBox);
		
		Label lblPassword = new Label("Password:");
		lblPassword.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(2, 0, lblPassword);
		
		PasswordTextBox passwordTextBox = new PasswordTextBox();
		passwordTextBox.setText("");
		flexTable.setWidget(2, 1, passwordTextBox);
		
		Label lblConfirmPassword = new Label("Confirm Password:");
		lblConfirmPassword.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(3, 0, lblConfirmPassword);
		
		PasswordTextBox confirmPasswordTextBox = new PasswordTextBox();
		flexTable.setWidget(3, 1, confirmPasswordTextBox);
		
		Label lblAddress = new Label("Address:");
		lblAddress.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(4, 0, lblAddress);
		
		TextBox addressTextBox1 = new TextBox();
		flexTable.setWidget(4, 1, addressTextBox1);
		
		TextBox addressTextBox2 = new TextBox();
		flexTable.setWidget(5, 1, addressTextBox2);
		
		TextBox postalTextBox1 = new TextBox();
		postalTextBox1.setText("");
		flexTable.setWidget(6, 1, postalTextBox1);
		
		TextBox postalTextBox2 = new TextBox();
		postalTextBox2.setText("");
		flexTable.setWidget(6, 2, postalTextBox2);
		postalTextBox2.setWidth("98px");
		
		Label lblCountry = new Label("Country:");
		lblCountry.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(7, 0, lblCountry);
		
		TextBox countryTextBox = new TextBox();
		flexTable.setWidget(7, 1, countryTextBox);
		
		Grid grid = new Grid(1, 2);
		flexTable.setWidget(8, 1, grid);
		grid.setWidth("163px");
		
		Button btnRegister = new Button("Register");
		grid.setWidget(0, 0, btnRegister);
		
		Button btnCancel = new Button("Cancel");
		grid.setWidget(0, 1, btnCancel);
	}

}
